
all_proto_recurse(PROTO_SOURCES)
set(MESSAGE_OUT_DIR ${CMAKE_BINARY_DIR}/proto_pb)
protobuf_cpp("src_proto" PROTO_SOURCES ${MESSAGE_OUT_DIR} MESSAGE_SRC MESSAGE_HDRS)

all_source_recurse(CC_SOURCES)

add_library(proto_packge 
    STATIC 
    ${CC_SOURCES} 
    ${MESSAGE_SRC} 
    ${MESSAGE_HDRS}
)

target_link_libraries(proto_packge
    PUBLIC
    protobuf
)

target_include_directories(proto_packge
    PUBLIC
    ${MESSAGE_OUT_DIR}/
    ${CMAKE_CURRENT_SOURCE_DIR}/
)
